﻿namespace WechatMp.Web
{
    /// <summary>
    /// JsonWebToken配置模型。
    /// </summary>
    public class JwtOption
    {
        /// <summary>
        /// 颁发者
        /// </summary>
        public string Issuer { get; set; } = string.Empty;
        /// <summary>
        /// 受众
        /// </summary>
        public string Audience { get; set; } = string.Empty;
        /// <summary>
        /// 签名密钥
        /// </summary>
        public string Secret { get; set; } = string.Empty;
        /// <summary>
        /// Token有效期（单位：秒）。
        /// </summary>
        public int Expiration { get; set; }
        /// <summary>
        /// Token有效刷新时间（单位：分钟）。
        /// </summary>
        public int refreshJwtTime { get; set; }
    }
}
